home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #8 / Software USA Volume 4.08.iso / mac / LifeStyles / ComicBase / ComicBase.sea / ComicBase 3 Mac Demo / ComicBase 3 Demo.rsrc / LENS_179_Movie Previews < prev    next >
Text File  |  1998-02-04  |  4KB  |  53 lines

  1. ItemType: WIND
  2. Rect: 256,244,768,524
  3. Style: Window
  4. HasTitleBar: TRUE
  5. HasZoomBox: FALSE
  6. HasCloseBox: TRUE
  7. HasGrowBox: FALSE
  8. MinSize: 266,50
  9. MaxSize: 512,597
  10. Name: Movie Previews
  11. WhiteColor: -8739,-8739,-8739
  12. Script: --on windowEvent  wdID,wdName,objNo,objName,objValue¬global gAllMoviesList¬¬if objValue="Open" then ¬  set cursor to watch¬  CenterWindow wdName¬  ¬  wsSet wdID,"ClipList","Text",  getColumn(gAllMoviesList,2,2,tab)  ¬  put random(the number of lines of gAllMoviesList) into SelectNum¬  wsSet wdID,"ClipList","Selection",  selectNum  ¬  put ((SelectNum < 1) or (SelectNum = empty)) into movieDisabled¬  ¬  if movieDisabled then¬    wsSet wdID, "TheMovie", "File", empty¬  else¬    set cursor to watch¬    put line SelectNum of gAllMoviesList into selectedMovie¬    put GetColumn(selectedMovie,1,1,tab) & GetColumn(selectedMovie,2,2,tab) into selectedMovie¬    put ".mov" after SelectedMovie¬    wsSet wdID,"TheMovie","File", selectedMovie¬  end if¬  ¬  wsSet wdID,"View Movie","Disabled", movieDisabled¬  ¬  if there is a menuItem "Close" of menu "File" then¬    enable menuItem "Close" of menu "File"¬  end if¬  ¬else if objValue="Close" then ¬  if there is a menuItem "Close" of menu "File" then¬    disable menuItem "Close" of menu "File"¬  end if¬  ¬else if objValue="Suspend" then ¬  put frontWindow() into theFrontID¬  if wsGet(theFrontID,"0","HasCloseBox") <> "true" then¬    if there is a menuItem "Close" of menu "File" then¬      disable menuItem "Close" of menu "File"¬    end if¬  end if¬  ¬else if objValue="Resume" then ¬  if there is a menuItem "Close" of menu "File" then¬    enable menuItem "Close" of menu "File"¬  end if¬end if¬--end windowEvent
  13.  
  14. ItemType: LIST
  15. Rect: 6,26,180,236
  16. TextFont: Geneva
  17. TextSize: 10
  18. Name: ClipList
  19. DoubleClickItem: 2
  20. Text: AD Police¬Angel Cop¬Appleseed Book 1¬Bio-Booster Armor Guyver¬Bru-Hed¬Bubblegum Crisis- Grand Mal¬Cadillacs & Dinosaurs¬Cyber City- Part 1¬Devil Man¬Earthworm Jim¬Exo-Squad¬Gall Force- Eternal Story¬Ghost in the Shell¬Iczer 3¬Lum Urusei-Yatsura¬Macross II¬MD Geist¬Oh My Goddess!¬Project A-Ko¬Ranma 1-2¬Sanctuary Part 2¬Tank Police¬Vampire Miyu¬You're Under Arrest!
  21. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬¬global gAllMoviesList¬¬set cursor to watch¬get wsGet(wdID,"ClipList","Selection")¬put ((it > the number of lines of gAllMoviesList) or (it = empty)) into movieDisabled¬¬if movieDisabled then¬  wsSet wdID,"Loading","Visible", False¬  wsSet wdID, "TheMovie", "File", empty¬else¬  wsSet wdID,"Loading","Visible", True¬  put line it of gAllMoviesList into selectedMovie¬  put GetColumn(selectedMovie,1,1,tab) & GetColumn(selectedMovie,2,2,tab) into selectedMovie¬  put ".mov" after selectedMovie¬  wsSet wdID,"TheMovie","File", selectedMovie¬  ¬end if¬¬wsSet wdID,"View Movie","Disabled", movieDisabled¬set cursor to arrow¬¬--end mouseUp
  22.  
  23. ItemType: PUSH
  24. Rect: 42,247,142,267
  25. Name: View Movie
  26. DefaultItem: TRUE
  27. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬global gAllMoviesList¬¬get wsGet(wdID,"ClipList","Selection")¬if it <= the number of lines of gAllMoviesList then¬  put line it of gAllMoviesList into selectedMovie¬  put GetColumn(selectedMovie,1,1,tab) & GetColumn(selectedMovie,2,2,tab) into selectedMovie¬  put ".mov" after SelectedMovie¬  if wsGet(wdID, "TheMovie", "File") <> selectedMovie then wsSet wdID,"TheMovie","File", selectedMovie¬  wsSend wdID,"TheMovie","Play"¬  ¬end if¬--end mouseUp¬¬
  28.  
  29. ItemType: TEXT
  30. Rect: 11,11,152,24
  31. TextFont: Geneva
  32. TextSize: 10
  33. Name: Instructions
  34. WhiteColor: -8739,-8739,-8739
  35. TextStyle: Bold
  36. Text: Choose a movie to view:
  37.  
  38. ItemType: BOX
  39. Rect: 187,12,509,270
  40.  
  41. ItemType: TEXT
  42. Rect: 192,119,505,151
  43. Name: Loading
  44. WhiteColor: -8739,-8739,-8739
  45. TextAlign: Center
  46. Text: Loading Movie…
  47.  
  48. ItemType: MOOV
  49. Rect: 188,13,508,269
  50. Name: TheMovie
  51. WhiteColor: -8739,-8739,-8739
  52. File: ComicBase 3:ComicBase Data:Movies:Macross II.mov
  53. SoundVolume: 100